Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Numerical Electromagnetics Code</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Numerical_Electromagnetics_Code"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Numerical_Electromagnetics_Code rootpage-Numerical_Electromagnetics_Code skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Numerical Electromagnetics Code</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">

<p>The <b>Numerical Electromagnetics Code</b>, or <b>NEC</b>, is a popular <a href="Antenna_modeling" class="mw-redirect" title="Antenna modeling">antenna modeling</a> computer program for wire and surface <a href="Antenna_(radio)" title="Antenna (radio)">antennas</a>. It was originally written in <a href="FORTRAN" class="mw-redirect" title="FORTRAN">FORTRAN</a> during the 1970s by Gerald Burke and Andrew Poggio of the <a href="Lawrence_Livermore_National_Laboratory" title="Lawrence Livermore National Laboratory">Lawrence Livermore National Laboratory</a>. The code was made publicly available for general use and has subsequently been distributed for many computer platforms from mainframes to PCs.
</p><p>NEC is widely used for modeling antenna designs, particularly for common designs like television and radio antennas, <a href="Shortwave_radio" title="Shortwave radio">shortwave</a> and <a href="Amateur_radio" title="Amateur radio">ham radio</a>, and similar examples. Examples of practically any common antenna type can be found in NEC format on the internet. While highly adaptable, NEC has its limits, and other systems are commonly used for very large or complex antennas or special cases like microwave antennas.
</p><p>By far the most common version is <b>NEC-2</b>, the last to be released in fully public form. There is a wide and varied market of applications that embed the NEC-2 code within frameworks to simplify or automate common tasks. Later versions, NEC-3 and NEC-4, are available after signing a license agreement. These have not been nearly as popular. Versions using the same underlying methods but based on entirely new code are also available, including <b>MININEC</b>.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>NEC traces its history to an earlier program, BRACT, which was used to analyze antennas consisting of many thin wires in free space. It was useful for modeling certain common types of antennas used on aircraft or spacecraft or other examples where the ground was far enough away that it did not affect the signals. BRACT was developed in the early 1970s by MBAssociates for the <a href="US_Air_Force" class="mw-redirect" title="US Air Force">US Air Force</a>'s <a href="Space_and_Missile_Systems_Center" class="mw-redirect" title="Space and Missile Systems Center">Space and Missile Systems Center</a>. MBAssociates, named after the founding partners of Bob Mainhardt and Art Biehl, are better known for the development of the <a href="Gyrojet" title="Gyrojet">Gyrojet</a> rocket gun.<sup id="cite_ref-FOOTNOTEPartI19811_1-0" class="reference"><a href="#cite_note-FOOTNOTEPartI19811-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>BRACT's success led to a second contract with MBAssociates, this time by the <a href="Naval_Research_Laboratory" class="mw-redirect" title="Naval Research Laboratory">Naval Research Laboratory</a> and <a href="Rome_Laboratory" title="Rome Laboratory">USAF Rome Air Development Center</a>, to adapt the BRACT code to consider the effect of the ground. This produced the Antenna Modeling Program, or AMP, which was extensively modified to support disk-based files, simplify the input and output to make it easier to use, and extensively documented. A follow-up, AMP2, added calculations for extended surfaces like reflectors.<sup id="cite_ref-FOOTNOTEPartI19812_2-0" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>NEC is an advanced version of AMP2, with more options and features. It was written by programmers at Lawrence Livermore National Laboratory (LLNL) under contract to the Naval Ocean Systems Center and the Air Force Weapons Laboratory.<sup id="cite_ref-FOOTNOTEPartI19812_2-1" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> The original NEC added a more accurate system for calculating currents along the wires, and at junctions between them, as well as an option that increased the accuracy when the wire was thick, with a low <a href="Aspect_ratio" title="Aspect ratio">aspect ratio</a> compared to its length. NEC-2 added two major features to the original NEC, a numerical <a href="Green's_function" title="Green's function">Green's function</a> for working with large planes, and an expansion of the ground-plane code to deal with partially lossy materials that are more realistic for antennas near the ground. With the release of NEC-2, the original became known as NEC-1.<sup id="cite_ref-FOOTNOTEPartI19812_2-2" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>All of these programs originated in the <a href="Mainframe_computer" title="Mainframe computer">mainframe</a> era, originally running on <a href="Control_Data_Corporation" title="Control Data Corporation">Control Data</a> machines. The code was written in FORTRAN and designed to take input from <a href="Punched_card" title="Punched card">punched card</a> stacks in column-delimited format and then print the results on a <a href="Line_printer" title="Line printer">line printer</a>. These early versions were widely ported to a number of other big-iron platforms. AMP added support for disk-based files by emulating the original system, writing out the data from a single punch card to 80-column line in a text file, with the file as a whole representing a deck of cards.<sup id="cite_ref-FOOTNOTEAdler19938_3-0" class="reference"><a href="#cite_note-FOOTNOTEAdler19938-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> With the move from punch card input to the use of text files, a profusion of slightly different file formats appeared, which was later described as "close to free format".<sup id="cite_ref-FOOTNOTEBurke199217_4-0" class="reference"><a href="#cite_note-FOOTNOTEBurke199217-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p><p>Versions were introduced on the <a href="MS-DOS" title="MS-DOS">MS-DOS</a> platform in the late 1980s, mostly using FORTRAN compilers capable of compiling the original code. Later versions converted the FORTRAN to the <a href="C_(programming_language)" title="C (programming language)">C programming language</a>, either by hand or using automated tools. These versions were often limited by the platform's resources. Modern versions run on a wide variety of platforms.<sup id="cite_ref-FOOTNOTEAdler19938_3-1" class="reference"><a href="#cite_note-FOOTNOTEAdler19938-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> Modern programs usually have a separate <a href="Graphical_user_interface" title="Graphical user interface">graphical user interface</a> (GUI) that allows the user to draw and edit the antenna. When that is complete, the GUI converts the design into the NEC-2 deck file format and runs NEC-2. The GUI then parses NEC-2's output and graphically displays the results.
</p><p>Development of the original NEC codes continued at LLNL, producing NEC-3 which added the ability to model elements buried in or projecting out of the ground, and NEC-4, which included a wide variety of updates. NEC-4 formalized what was already widely the case, taking input from a specified file, sending output to another file, and allowing comments to be added to any line using the <code>!</code> character.<sup id="cite_ref-FOOTNOTEBurke199218_5-0" class="reference"><a href="#cite_note-FOOTNOTEBurke199218-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> NEC-4 also introduced a new licensing system, and is not available as <a href="Open_source" title="Open source">open source</a>.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="How_it_works">How it works</h2></div>
<p>The code is based on the <a href="Method_of_moments_(electromagnetics)" title="Method of moments (electromagnetics)">method of moments</a> solution of the electric field integral equation (EFIE) for thin wires and the magnetic field integral equation (MFIE) for closed, conducting surfaces.<sup id="cite_ref-FOOTNOTEPartI19813_7-0" class="reference"><a href="#cite_note-FOOTNOTEPartI19813-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> It uses an iterative method to calculate the currents in a set of wires, and the fields that result.<sup id="cite_ref-FOOTNOTEPartII19813–5_8-0" class="reference"><a href="#cite_note-FOOTNOTEPartII19813–5-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p><p>The calculation starts by calculating the <a href="Electrical_field" class="mw-redirect" title="Electrical field">electrical field</a> in space for a radio signal of a given frequency, normally traveling along the <i>X</i>&nbsp;axis in three-dimensional space. This field is uniform in <i>Y</i> and <i>Z</i>, but varies along the <i>X</i>&nbsp;axis; the signal's magnitude at any point along <i>X</i> is defined by the phase at that instant. Antennas work because the field changes over time as the wavefront moves past the antenna. This changing field induces current in conductors, the voltage being defined by the magnitude of the field at that instant. An antenna consists of extended but finite length conductors, so the pattern of the field results in different voltages at different points around the antenna. In antenna terms, each of the conductors making up the antenna is known as an <i>element</i>.<sup id="cite_ref-FOOTNOTEPartI198112_9-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198112-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p><p>To calculate the net result, NEC breaks the antenna's elements into a number of sampled points, called <i>segments</i>. It uses simple calculations based on the diameter of the conductor and the wavelength of the signal to determine the induced voltage and currents at each of these segments. Depending on the arrangement of the wires, the induced currents in some segments will reinforce or resist the currents in others. NEC sums all of these to determine the net current in each of the conductors.<sup id="cite_ref-FOOTNOTEPartI198112–13_10-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198112–13-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p><p>When alternating current flows in a conductor it radiates an electromagnetic wave (radio wave). In multi-element antennas, the fields due to currents in one element induce currents in the other elements. Antennas are self-interacting in this respect; the waves reradiated by the elements superimpose on the original radio signal being studied. NEC calculates the field resulting from these contributions, adds it to the original radio signal, and then runs the entire calculation again with this modified field. Because the reradiated signal is normally small compared to the original signal, it only produces a small change, or <a href="Perturbation_theory" title="Perturbation theory">perturbation</a>, in the resulting element currents. The program then repeats the calculation again with the new element currents, getting new radiation fields. This process is repeated until resulting values converge.<sup id="cite_ref-FOOTNOTEPartI198120–36_11-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198120–36-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
</p><p>NEC uses a separate method to calculate the contribution of extended planes of material, like a wire mesh reflector. In this case, the plane is considered as a unit and the magnetic contribution is calculated directly and fed back into the calculation once the contributions from the individual wires are considered.<sup id="cite_ref-FOOTNOTEPartI198118–20_12-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198118–20-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> Similar integral solutions are used to calculate the effects of the ground plane. Similarly, inductive and capacitive loads, insulated transmission wires above and buried in the ground and other common parts of an extended antenna system are also modeled using simpler numeric methods.<sup id="cite_ref-FOOTNOTEPartI198137–61_13-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198137–61-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p><p>The calculations normally converge rapidly. The output is then sampled at a user-defined point, the <i>load</i>. In a real antenna, this is normally where the wire attaches for connection to the transmitter or receiver. The result is a value that indicates the energy delivered to the load on reception, or the amount of energy absorbed by the antenna during transmission.<sup id="cite_ref-FOOTNOTEPartI198162_14-0" class="reference"><a href="#cite_note-FOOTNOTEPartI198162-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup>
</p><p>NEC then repeats this entire series of calculations while changing the signal so it approaches the antenna from different angles along the <i>X</i> and <i>Y</i>&nbsp;axes, storing the results for each combination of angles. The results are then normalized to the strongest signal received (almost always at <i>X</i> and <i>Y</i>&nbsp;=&nbsp;0, or "head on") to produce a 3D pattern illustrating the relative gain for every angle. The <a href="Gain_(antenna)" title="Gain (antenna)">gain relative to an isotropic antenna</a> (dBi), <a href="Front-to-back_ratio" title="Front-to-back ratio">front-to-back ratio</a>, <a href="Standing_wave_ratio" title="Standing wave ratio">standing wave ratio</a> and the general reception pattern are all evident from these numbers.<sup id="cite_ref-FOOTNOTEPartIII19811_15-0" class="reference"><a href="#cite_note-FOOTNOTEPartIII19811-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> Programs often process this into more common forms like <a href="Smith_chart" title="Smith chart">Smith charts</a>.<sup id="cite_ref-FOOTNOTEAdler1993_16-0" class="reference"><a href="#cite_note-FOOTNOTEAdler1993-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup>
</p><p>The algorithm has no theoretical size limit and can be applied to very large arrays or for detailed modeling of very small antenna systems. The algorithm has proven reliable (likely to converge to a solution) and accurate (likely to produce results comparable to measured performance) at modeling thin-element structures like <a href="Yagi_antenna" class="mw-redirect" title="Yagi antenna">Yagi antennas</a> and radiating towers. The NEC engine provides support for modeling patch antennas as well. It can be used for, but is not well suited to, <a href="Slot_antenna" title="Slot antenna">slotted waveguide antennas</a>, <a href="Fractal_antenna" title="Fractal antenna">fractal antennas</a> or similar designs in which the component conductive elements are not rod-like.<sup id="cite_ref-FOOTNOTEPartIII19811_15-1" class="reference"><a href="#cite_note-FOOTNOTEPartIII19811-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup>
</p><p>The method of moments algorithm has practical limitations as well; the number of calculations required to model a three-dimensional structure of <i>N</i> radiating elements is roughly proportional to the cube of <i>N</i>. Modeling an antenna with 100&nbsp;wire segments requires 100<sup>3</sup>&nbsp;=&nbsp;1&nbsp;million calculations. Increasing the number of elements by a factor of 10 requires 1000<sup>3</sup>&nbsp;=&nbsp;1&nbsp;billion calculations, increasing the computing time by a factor of 1000, assuming the simulation completes at all given memory limitations and such. Consequently, there are other approaches such as geometric optics which are preferred for modeling large structures.<sup id="cite_ref-FOOTNOTEAdler1993_16-1" class="reference"><a href="#cite_note-FOOTNOTEAdler1993-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup>
</p><p>Most programs using NEC include features that run batches of NEC calculations to produce a composite output. A common example is to run the entire calculation suite for different input frequencies, and then plot samples on a single chart. One might use this to sample through the <a href="Ultra_high_frequency" title="Ultra high frequency">UHF</a> television frequencies, for instance, producing a diagram that illustrates the gain across the band. Another common feature is an iterative solver that adjusts a given parameter between runs, say the spacing between elements, in order to maximize performance. These operations are highly independent and can be trivially paralleled on modern machines.<sup id="cite_ref-FOOTNOTEAdler1993_16-2" class="reference"><a href="#cite_note-FOOTNOTEAdler1993-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Example">Example</h2></div>
<p>The NEC input file is a sequence of lines; the input file is known as a "deck" (from "card deck', referring to the original punch card formats) and uses a <code>.deck</code> or <code>.nec</code> file extension. Each line of text, or "card", starts with one of several dozen identifiers that indicate how the line should be interpreted. One of the most common identifiers found in NEC codes is <code>GW</code>, which defines a single wire (element) in the antenna. Its definition is:
</p>
<dl><dd><code>GW</code> <i>ITG NS XW1 YW1 ZW1 XW2 YW2 ZW2 RAD</i></dd></dl>
<p>The string literal <code>GW</code> identifies this as a line describing straight-wire geometry. The parameter <i>ITG</i>, short for "integer tag", is a user-provided number used to identify ("tag") this element. The <i>NS</i> parameter defines the number of segments the wire should be divided into during the calculation; using more segments breaks the wire into smaller parts and may produce more accurate results at the cost of increased calculation time. The next six parameters are real numbers that define the <i>X</i>, <i>Y</i> and <i>Z</i> locations of the wire's two endpoints. Finally, the <i>RAD</i> parameter is the radius of the wire. If this is set to zero, then the next line must be a <code>GC</code> line that includes additional information to define tapering rods.<sup id="cite_ref-FOOTNOTEPartIII198128–30_17-0" class="reference"><a href="#cite_note-FOOTNOTEPartIII198128–30-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup>
</p><p>The following example of a complete input deck models a <a href="Log-periodic_antenna" title="Log-periodic antenna">log-periodic antenna</a>, like those used for VHF television reception:
</p>

<pre>CM TESTEX5
CM 12 ELEMENT LOG PERIODIC ANTENNA IN FREE SPACE
CM 78 SEGMENTS. SIGMA=O/L RECEIVING AND TRANS. PATTERNS.
CM DIPOLE LENGTH TO DIAMETER RATIO=150.
CE TAU=0.93. SIGMA=0.70. BOOM IMPEDANCE=50. OHMS.
GW 1 5 0.0000 -1.0000 0.0000000 0.00000 1.0000 0.000 .00667
GW 2 5 -.7527 -1.0753 0. -.7527 1.0753 0. .00717
GW 3 5 -1.562 -1.1562 0. -1.562 1.1562 0. .00771
GW 4 5 -2.4323 -1.2432 0. -2.4323 1.2432 0. .00829
GW 5 5 -3.368 -1.3368 0. -3.368 1.3368 0. .00891
GW 6 7 -4.3742 -1.4374 0. -4.3742 1.4374 0. .00958
GW 7 7 -5.4562 -1.5456 0. -5.4562 1.5456 0. .0103
GW 8 7 -6.6195 -1.6619 0. -6.6195 1.6619 0. .01108
GW 9 7 -7.8705 -1.787 0. -7.8705 1.787 0. .01191
GW 10 7 -9.2156 -1.9215 0. -9.2156 1.9215 0. .01281
GW 11 9 -10.6619 -2.0662 0. -10.6619 2.0662 0. .01377
GW 12 9 -12.2171 -2.2217 0. -12.2171 2.2217 0. .01481
GE
FR 0 0 0 0 46.29 0.
TL 1 3 2 3 -50.
TL 2 3 3 3 -50.
TL 3 3 4 3 -50.
TL 4 3 5 3 -50.
TL 5 3 6 4 -50.
TL 6 4 7 4 -50.
TL 7 4 8 4 -50.
TL 8 4 9 4 -50.
TL 9 4 10 4 -50.
TL 10 4 11 5 -50.
TL 11 5 12 5 -50. ,0.,0.,0.,.02
EX 0 1 3 10 1
RP 0 37 1 1110 90. 0. -5. 0.
EN
</pre>
<p>The example starts with several <code>CM</code> (comment) lines followed by the last comment on a <code>CE</code> (comment end) line. The <code>CE</code> must be followed by geometry lines (lines whose commands start with the letter <code>G</code>.<sup id="cite_ref-FOOTNOTEPartIII1981115–122_18-0" class="reference"><a href="#cite_note-FOOTNOTEPartIII1981115–122-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup>
</p><p>In this case, the geometry section consists of twelve <code>GW</code> elements making up the antenna. Each element is longer than the last, and to maintain accuracy, the later elements are divided into more segments. All measurements in NEC use metres, so the first element is 2 metres wide, running from -1 to 1. The <code>GE</code> line indicates the end of the geometry section. At this point, NEC scans the geometry for overlapping endpoints, which it then connects together to make a single longer conductor. The <code>GE</code> line also has a single input that indicates whether a ground plane is present; in this example, it is not specified, so the antenna is located above a "standard ground".<sup id="cite_ref-FOOTNOTEPartIII1981115–122_18-1" class="reference"><a href="#cite_note-FOOTNOTEPartIII1981115–122-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup>
</p><p>The <code>FR</code> line then sets the test frequency to 46.29&nbsp;MHz. <code>FR</code> lines can optionally define the number and magnitude of the frequency steps if the system is being used to analyze the performance across a range of frequencies, but this is not being used in this case. The <code>TL</code> lines (transmission line) connect the various elements together. These can be seen on most log-periodic designs in the form of two thin rods running down the boom between the main antenna elements, although some designs use the boom itself, or hide the wires within the boom. The <code>EX</code> (excitation) line indicates the location of the energy supplied to the design, in this case 1 Volt of electric potential difference is applied at the middle of the wire tagged 1, while the <code>RP</code> (radiation pattern) sets up some specifics of the signal.<sup id="cite_ref-FOOTNOTEPartIII1981115–122_18-2" class="reference"><a href="#cite_note-FOOTNOTEPartIII1981115–122-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup>
</p><p>Finally the <code>EN</code> line (end of input) indicates the deck is complete, at which point the NEC code starts the simulation and generates reports. The reports start by reprinting much of the input, which allows the user to check for errors. It then includes lengthy sections showing how the system broke the antenna down into segments. Finally, it begins to list calculated values, in tabular format. A small sample of the output from the sample above includes:
</p>
<pre> - - - RADIATION PATTERNS - - -

- - ANGLES - - - DIRECTIVE GAINS - - - POLARIZATION - - - - E(THETA) - - - - - E(PHI) - - -
THETA PHI VERT. HOR. TOTAL AXIAL TILT SENSE MAGNITUDE PHASE MAGNITUDE PHASE
DEGREES DEGREES DB DB DB RATIO DEG. VOLTS/M DEGREES VOLTS/M DEGREES
90.00 .00 -999.99 9.75 9.75 .00000 90.00 LINEAR 0.00000E+00 .00 2.46922E+00 -66.00
85.00 .00 -999.99 9.70 9.70 .00000 90.00 LINEAR 0.00000E+00 .00 2.45352E+00 -65.20
[many lines removed]
30.00 .00 -999.99 2.10 2.10 .00000 90.00 LINEAR 0.00000E+00 .00 1.02313E+00 38.02
25.00 .00 -999.99 -.14 -.14 .00000 90.00 LINEAR 0.00000E+00 .00 7.90310E-01 59.26
[more lines removed]
</pre>
<p>The output indicates that the antenna has a maximum gain of 9.75 dBi, a little over three times the gain of an isotropic antenna. However, as the signal moves even five degrees to the side, this has dropped to 9.5. When you reach 75 degrees off the front, the antenna begins to have negative gain. This indicates that this antenna is fairly directional, and one would expect it to have a high front-to-back ratio.<sup id="cite_ref-FOOTNOTEPartIII1981115–122_18-3" class="reference"><a href="#cite_note-FOOTNOTEPartIII1981115–122-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="NEC_versions">NEC versions</h2></div>
<div class="mw-heading mw-heading3"><h3 id="BRACT">BRACT</h3></div>
<p>BRACT was a pure method of moments implementation, suitable for use on antennas consisting of uniform diameter conductors arranged in free space and connected to each other at their ends (if at all). It did not model the contributions of the ground (or water) and was primarily useful for aircraft and spacecraft type applications.<sup id="cite_ref-FOOTNOTEPartI19811_1-1" class="reference"><a href="#cite_note-FOOTNOTEPartI19811-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="AMP">AMP</h3></div>
<p>AMP modified BRACT by adding a system for calculating the effects of ground planes.<sup id="cite_ref-FOOTNOTEPartI19812_2-3" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="AMP2">AMP2</h3></div>
<p>AMP2 added the ability to model extended closed surfaces.<sup id="cite_ref-FOOTNOTEPartI19812_2-4" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="NEC-1">NEC-1</h3></div>
<p>The original NEC, later known as NEC-1 after NEC-2 was introduced, was a modification of the earlier AMP2, adding a more accurate current expansion along wires and at multiple wire junctions, and an option in the wire modeling for far greater accuracy on thick wires. A new model for a voltage source was added and several other modifications made for increased accuracy.<sup id="cite_ref-FOOTNOTEPartI19812_2-5" class="reference"><a href="#cite_note-FOOTNOTEPartI19812-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="NEC-2">NEC-2</h3></div>
<p>NEC-2 is the highest version of the code within the public domain without a license. It cannot model buried radials or ground stakes.
</p>
<div class="mw-heading mw-heading3"><h3 id="NEC-3">NEC-3</h3></div>
<p>NEC-3 modified NEC-2 to include a Sommerfeld model to properly model wires buried in or close to the ground.<sup id="cite_ref-nec4_19-0" class="reference"><a href="#cite_note-nec4-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="NEC-4">NEC-4</h3></div>
<p>NEC-4 modified NEC-3 to better model very small antennas, like those on <a href="Cell_phone" class="mw-redirect" title="Cell phone">cell phones</a> and <a href="WiFi" class="mw-redirect" title="WiFi">WiFi</a> routers. The most recent version, 4.2, includes a better version of the Sommerfeld model used in NEC-3 for in- and near-ground wires, added current sources instead of just voltage sources as in earlier models, and used a new memory management system that allows arbitrarily large designs.<sup id="cite_ref-nec4_19-1" class="reference"><a href="#cite_note-nec4-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p><p>NEC-4 remains the property of the <a href="Lawrence_Livermore_National_Laboratory" title="Lawrence Livermore National Laboratory">Lawrence Livermore National Laboratory</a> and the <a href="University_of_California" title="University of California">University of California</a>. NEC-4 requires a license.<sup id="cite_ref-ipo.llnl.gov_20-0" class="reference"><a href="#cite_note-ipo.llnl.gov-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="NEC-5">NEC-5</h3></div>
<p>NEC-5 solves the <a href="Electric-field_integral_equation" title="Electric-field integral equation">Electric-field integral equation</a> for wires and surfaces using the newer mixed potential method developed by Rao, Wilton and Glisson.<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup>
</p><p>NEC-5 remains the property of the <a href="Lawrence_Livermore_National_Laboratory" title="Lawrence Livermore National Laboratory">Lawrence Livermore National Laboratory</a> and the <a href="University_of_California" title="University of California">University of California</a>. NEC-5 requires a license.<sup id="cite_ref-ipo.llnl.gov_20-1" class="reference"><a href="#cite_note-ipo.llnl.gov-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="MININEC">MININEC</h3></div>
<p>MININEC is an independent implementation of the concepts in NEC. It uses the same method of moments algorithm to calculate the outcomes, but using entirely original code. The first versions were written in 1980 in <a href="BASIC" title="BASIC">BASIC</a> for 32&nbsp;kB <a href="Apple_II" title="Apple II">Apple II</a> computers, and after following some advice from Professor Wilton at the University of Mississippi, the first public release was made in 1982 for 64&nbsp;kB machines. An improved version, MININEC2, was released in 1984, followed by a port to the <a href="IBM_PC_compatible" title="IBM PC compatible">IBM PC</a> as MININEC3 in 1986. Like the original NEC, MININEC now runs on many platforms, although its popularity has fallen with the more widespread availability of the original NEC codes in C form.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup>
</p><p>MININEC suffers from some known flaws compared to NEC, the best known being that resonant frequencies may be slightly in error. However, MININEC handles different wire diameters better than NEC-2 and probably NEC-4; this includes different diameter parallel wires, different diameter wires joined at an angle and tapered diameter antenna elements. Placing sources at an intersection of two wires is a problem for NEC-2 but not MININEC. MININEC converges more slowly (requires more segments) when wires join at an angle, when wire segments of significantly different length are adjacent, and has a weaker ground model.<sup id="cite_ref-FOOTNOTELewallen1991_23-0" class="reference"><a href="#cite_note-FOOTNOTELewallen1991-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-columns references-column-width" style="column-width: 25em;">
<ol class="references">
<li id="cite_note-FOOTNOTEPartI19811-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEPartI19811_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19811_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, p.&nbsp;1.</span>
</li>
<li id="cite_note-FOOTNOTEPartI19812-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEPartI19812_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19812_2-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19812_2-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19812_2-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19812_2-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartI19812_2-5"><sup><i><b>f</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, p.&nbsp;2.</span>
</li>
<li id="cite_note-FOOTNOTEAdler19938-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEAdler19938_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEAdler19938_3-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFAdler1993">Adler 1993</a>, p.&nbsp;8.</span>
</li>
<li id="cite_note-FOOTNOTEBurke199217-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEBurke199217_4-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFBurke1992">Burke 1992</a>, p.&nbsp;17.</span>
</li>
<li id="cite_note-FOOTNOTEBurke199218-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEBurke199218_5-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFBurke1992">Burke 1992</a>, p.&nbsp;18.</span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://ipo.llnl.gov/technologies/nec">"NEC"</a>. <i>LLNL Industrial Partnerships Office</i>.</cite></span>
</li>
<li id="cite_note-FOOTNOTEPartI19813-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI19813_7-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, p.&nbsp;3.</span>
</li>
<li id="cite_note-FOOTNOTEPartII19813–5-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartII19813–5_8-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartII1981">PartII 1981</a>, pp.&nbsp;3–5.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198112-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198112_9-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, p.&nbsp;12.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198112–13-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198112–13_10-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, pp.&nbsp;12–13.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198120–36-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198120–36_11-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, pp.&nbsp;20–36.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198118–20-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198118–20_12-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, pp.&nbsp;18–20.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198137–61-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198137–61_13-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, pp.&nbsp;37–61.</span>
</li>
<li id="cite_note-FOOTNOTEPartI198162-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartI198162_14-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartI1981">PartI 1981</a>, pp.&nbsp;62.</span>
</li>
<li id="cite_note-FOOTNOTEPartIII19811-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEPartIII19811_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartIII19811_15-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFPartIII1981">PartIII 1981</a>, p.&nbsp;1.</span>
</li>
<li id="cite_note-FOOTNOTEAdler1993-16"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEAdler1993_16-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEAdler1993_16-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-FOOTNOTEAdler1993_16-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFAdler1993">Adler 1993</a>.</span>
</li>
<li id="cite_note-FOOTNOTEPartIII198128–30-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEPartIII198128–30_17-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFPartIII1981">PartIII 1981</a>, pp.&nbsp;28–30.</span>
</li>
<li id="cite_note-FOOTNOTEPartIII1981115–122-18"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTEPartIII1981115–122_18-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartIII1981115–122_18-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartIII1981115–122_18-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-FOOTNOTEPartIII1981115–122_18-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFPartIII1981">PartIII 1981</a>, pp.&nbsp;115–122.</span>
</li>
<li id="cite_note-nec4-19"><span class="mw-cite-backlink">^ <a href="#cite_ref-nec4_19-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-nec4_19-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFChen2012" class="citation web cs1">Chen, Kok (22 May 2012). <a rel="nofollow" class="external text" href="http://www.w7ay.net/site/Applications/cocoaNEC/Contents/NEC4.html">"Using NEC-4 with cocoaNEC"</a>. <i>cocoaNEC</i>.</cite></span>
</li>
<li id="cite_note-ipo.llnl.gov-20"><span class="mw-cite-backlink">^ <a href="#cite_ref-ipo.llnl.gov_20-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-ipo.llnl.gov_20-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://ipo.llnl.gov/technologies/nec">"NEC"</a>. <i>Lawrence Livermore National Laboratory</i>.</cite></span>
</li>
<li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><cite id="CITEREFBurke" class="citation web cs1">Burke, G.J. <a rel="nofollow" class="external text" href="https://ipo.llnl.gov/sites/default/files/2020-07/NEC5%20Validation%20Manual%20092419.pdf">"NEC-5 Validation Manual"</a> <span class="cs1-format">(PDF)</span>. <i>Lawrence Livermore National Laboratory</i><span class="reference-accessdate">. Retrieved <span class="nowrap">1 January</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><cite id="CITEREFOlson2003" class="citation journal cs1">Olson, Robert (Spring 2003). <a rel="nofollow" class="external text" href="https://www.ewh.ieee.org/soc/emcs/acstrial/newsletters/spring03/practical.html">"EMC Applications for Expert MININEC"</a>. <i>IEEE EMC Society Newsletter</i>.</cite></span>
</li>
<li id="cite_note-FOOTNOTELewallen1991-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTELewallen1991_23-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFLewallen1991">Lewallen 1991</a>.</span>
</li>
</ol></div>
<div class="mw-heading mw-heading3"><h3 id="Bibliography">Bibliography</h3></div>
<ul><li><cite id="CITEREFAdler1993" class="citation journal cs1">Adler, Dick (November 1993). <a rel="nofollow" class="external text" href="http://www.nec2.org/nec_hist.txt">"Information on the History and Availability of NEC-MOM Codes for PC's &amp; Unix"</a>. <i>Applied Computational Electromagnetics Society Newsletter</i>: <span class="nowrap">8–</span>10.</cite></li>
<li><cite id="CITEREFPartI1981" class="citation techreport cs1">Burke, Gerald; Poggio, Andrew (January 1981). <a rel="nofollow" class="external text" href="http://www.radio-bip.qc.ca/NEC2/nec2prt1.pdf"><i>NEC Part I: Program Description - Theory</i></a> <span class="cs1-format">(PDF)</span> (Technical report). Lawrence Livermore Laboratory.</cite></li>
<li><cite id="CITEREFPartII1981" class="citation techreport cs1">Burke, Gerald; Poggio, Andrew (January 1981). <a rel="nofollow" class="external text" href="http://www.radio-bip.qc.ca/NEC2/nec2prt2.pdf"><i>NEC Part II: Program Description - Code</i></a> <span class="cs1-format">(PDF)</span> (Technical report). Lawrence Livermore Laboratory.</cite></li>
<li><cite id="CITEREFPartIII1981" class="citation techreport cs1">Burke, Gerald; Poggio, Andrew (January 1981). <a rel="nofollow" class="external text" href="http://www.radio-bip.qc.ca/NEC2/nec2prt3.pdf"><i>NEC Part III: User's Guide</i></a> <span class="cs1-format">(PDF)</span> (Technical report). Lawrence Livermore Laboratory.</cite></li>
<li><cite id="CITEREFBurke1992" class="citation techreport cs1">Burke, Gerald (January 1992). <a rel="nofollow" class="external text" href="http://physics.princeton.edu/~mcdonald/examples/NEC_Manuals/NEC4UsersMan.pdf"><i>NEC-4 Part I: User's Guide</i></a> <span class="cs1-format">(PDF)</span> (Technical report). Lawrence Livermore Laboratory.</cite></li>
<li><cite id="CITEREFLewallen1991" class="citation journal cs1">Lewallen, Roy (February 1991). <a rel="nofollow" class="external text" href="https://www.arrl.org/files/file/Technology/tis/info/pdf/9102018.pdf">"MININEC: The Other Edge of The Sword"</a> <span class="cs1-format">(PDF)</span>. <i>QST Magazine</i>: <span class="nowrap">18–</span>22.</cite></li></ul>
<dl><dd><dl><dd>This article has an excellent illustrated explanation of the NEC method of moments concepts.</dd></dl></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Cost-free_resources">Cost-free resources</h3></div>
<ul><li><a rel="nofollow" class="external text" href="http://elec.otago.ac.nz/w/index.php/Necpp">nec2++</a> - an extensive rewrite of NEC-2 in C++ licensed under GPLv2, with a C/C++ interface and python bindings. It can easily be incorporated into automatic optimizers.</li>
<li><a rel="nofollow" class="external text" href="https://eznec.com/">EZnec</a> - A well-known antenna modeling package based on NEC3 and NEC4, EZnec was formerly commercial but is now available without cost. The <a href="ARRL" class="mw-redirect" title="ARRL">ARRL</a>'s "Antenna Book" makes extensive use of EZnec and includes many example files (in .EZ format) to model amateur radio antennas. Opens .EZ files. (EZnec also works <a rel="nofollow" class="external text" href="https://appdb.winehq.org/objectManager.php?sClass=application&amp;iId=11032">on Linux using Wine</a>, or on Raspberry Pi using Wine inside ExaGear).</li>
<li><a rel="nofollow" class="external text" href="http://www.qsl.net/4nec2/">4nec2</a> - A free NEC2/NEC4 implementation for <a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>. It is a tool for designing 2D and 3D antennas and modeling their <a href="Near_and_far_field" title="Near and far field">near-field/far-field</a> radiation patterns.</li>
<li><a rel="nofollow" class="external text" href="http://www.nec2.org">Numerical Electromagnetics Code NEC2 unofficial home page</a> - NEC2 documentation and code examples</li>
<li><a rel="nofollow" class="external text" href="http://hamsoft.ca/pages/mmana-gal.php">MMANA-GAL basic</a> - A free antenna modeling program based on MININEC. Opens .MAA files. (MMANA-GAL also works on Linux using Wine, or on Raspberry Pi using Wine inside ExaGear).</li>
<li><a rel="nofollow" class="external text" href="http://www.xnec2c.org/">xnec2c</a> - A translation of NEC2 into C with multithreading and accelerated math libraries; uses GTK3 to provide 3D radiation pattern and 2D graphs for impedance, gain, directionality and a Smith chart. Opens .NEC files, supports external Simplex optimization, and much more. (<a rel="nofollow" class="external text" href="https://github.com/KJ7LNW/xnec2c">official github repo</a>)</li>
<li><a rel="nofollow" class="external text" href="https://github.com/KJ7LNW/xnec2c-optimize">xnec2c-optimize</a> - An optimizer that works with xnec2c to tune antenna geometries (i.e. high gain, low VSWR) with the Simplex optimization algorithm.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160828094540/http://www.ingenierias.ugto.mx/profesores/sledesma/documentos/index.htm">NEC Lab</a> - NEC Lab is a powerful tool that uses Numerical Electromagnetics Code (NEC2) and Artificial Intelligence (AI) to design antennas.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20161216033936/http://www.w7ay.net/site/Applications/cocoaNEC/index.html">CocoaNEC </a> - Open source GUI front-end for Apple Mac OS X. Includes NEC2 and supports NEC4 with separate license.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Commercial_resources">Commercial resources</h3></div>
<ul><li><a rel="nofollow" class="external text" href="https://www.antennasimulator.com/">AN-SOF</a> - A Windows simulation software for antennas in free space and above a lossy ground, microstrip patch antennas and printed circuit boards (PCBs). A radial wire ground screen is included and connections to imperfect ground are allowed. Not based on NEC.</li>
<li><a rel="nofollow" class="external text" href="https://ac6la.com/autoez.html">AutoEZ</a> - An Excel application that works in conjunction with EZNEC v.5.0 &amp; v.6.0. AutoEZ allows you to run multiple EZNEC test cases while AutoEZ automatically changes one or more variables between runs.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20161218021733/http://www.orionmicro.com/">NEC4WIN NEC4WIN /VM</a> - A Windows XP, Vista simulation program based on Mininec 3.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20161216233534/http://ac6la.com/">AC6LA antenna utilities</a> - A collection of commercial antenna utilities</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160304135133/http://www.nittany-scientific.com/">Nec-Win plus</a> - A commercial modeling package.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20100518191650/http://dl2kq.de/galana/">GAL-ANA</a> - A commercial antenna modeling package based on NEC2 and MININEC.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160304135133/http://www.nittany-scientific.com/">GNEC</a> - A commercial NEC package with a graphical user interface.</li>
<li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160318012809/http://gal-ana.de/promm/index.htm">MMANA-GAL PRO</a> - A commercial modeling package, up to 45000 segments.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Example_NEC_files_(for_amateur_radio_antennas)">Example NEC files (for <a href="Amateur_radio" title="Amateur radio">amateur radio</a> antennas)</h3></div>
<ul><li><a rel="nofollow" class="external text" href="http://www.df9cy.de/tech-mat/cy-ez-files/cy-ez-files.htm">DF9CY - EZNEC Simulation files collection</a> - Antenna modeling files for EZnec and 4nec2.</li>
<li><a rel="nofollow" class="external text" href="http://www.arrl.org/antenna-modeling-files">ARRL antenna modeling files</a> - .NEC, .YAG, and .EZ files contributed by various sources.</li>
<li><a rel="nofollow" class="external text" href="https://www.qsl.net/kk4obi/index.html">KK4OBI - Bent and other dipole models</a> - This web site is devoted primarily as a resource for amateur radio operators to see what happens if they bend a half-wave dipole. (.NEC files for dipoles)</li>
<li><a rel="nofollow" class="external text" href="http://www.on5au.be/Cebiktutorialdownload.html">L.B. Cebik's Basic &amp; Intermediate Antenna Modeling</a> - Includes exercise models for EZnec (also see Cebik's <a rel="nofollow" class="external text" href="http://www.on5au.be/Cebik%20documents.html">Antenna Modeling Notes - 7 Volumes including the models</a>).</li>
<li><a rel="nofollow" class="external text" href="https://www.hamradio.me/antennas/simulating-the-end-fed-halfwave-dipole-antenna.html">Simulating the end-fed half-wave (EFHW) dipole antenna</a></li>
<li><a rel="nofollow" class="external text" href="https://vk3il.net/projects-antenna/multiband-end-fed-80-10m-antenna/">VK3IL - Multiband end-fed 80-10m antenna</a> - NEC2 model file of a "MyAntennas <a rel="nofollow" class="external text" href="http://hamfest.w7yrc.org/wp-content/uploads/2019/06/EFHWslides.pdf">EFHW-8010</a>" multi-band antenna.</li>
<li>Other retail books (such as The ARRL Antenna Book, Marcel De Canck's Advanced Antenna Modeling, and others) also include antenna model files.</li>
<li>Most free or retail NEC software packages include an 'example' folder containing antenna model files.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="NEC_antenna_modeling_tutorials">NEC antenna modeling tutorials</h3></div>
<ul><li><a rel="nofollow" class="external text" href="https://archive.org/details/w4rnlantenna">Archive of L. B. Cebik's papers on antennas and antenna modeling</a> (<a rel="nofollow" class="external text" href="http://on5au.be/Cebik%20documents.html">mirror</a>) - Larry Wolfgang, WR1B, QEX Editor, called Cebik "probably the most widely published and often read author of Amateur Radio antenna articles ever to write on the subject."</li>
<li><a rel="nofollow" class="external text" href="http://www.arrl.org/files/file/Antenna%20Modeling%20for%20Beginners%20Supplemental%20Files/EZNEC%20Modeling%20Tutorial%20by%20W8WWV.pdf">How to Start Modeling Antennas using EZNEC</a> - Antenna Modeling for Beginners (W8WWV, May 2011)</li>
<li><a rel="nofollow" class="external text" href="http://www.w5ddl.org/files/ComputerModelingSimple6.pdf">Computer Antenna Modeling Simplified</a> - Slide show compiled from the Internet for the AARA Ham Radio Club, (KE5KJD, 2010)</li>
<li><a rel="nofollow" class="external text" href="https://ncjweb.com/bonus-content/k3lcmaxgainradials.pdf">Maximum-Gain Radial Ground Systems for Vertical Antennas</a> - Analysis of how many ground radials is theoretically optimal for different vertical antennas (modeled with EZNEC4)</li>
<li><a rel="nofollow" class="external text" href="https://www.nec2.org/">Numerical Electromagnics Code</a> - Older website which gathered some NEC2 documentation from a group of leading scientists and engineers</li>
<li><a rel="nofollow" class="external text" href="http://www.arrl.org/antenna-modeling">The ARRL's antenna modeling page</a> - Includes some links to QST magazine publications of LB Cebik's NEC tutorials (for paid QST members only - though the original source articles are also available for free distribution at other websites).</li>
<li><a rel="nofollow" class="external text" href="http://www.arrl.org/antenna-modeling-for-beginners">The ARRL's supplemental information page for their Antenna Modeling for Beginners book</a> - Includes some presentations, links to tutorials, and references.</li>
<li><a rel="nofollow" class="external text" href="https://www.linuxjournal.com/content/antennas-linux">Installing and getting oriented with xnec2c in Debian Linux</a></li></ul>
<div class="mw-heading mw-heading4"><h4 id="YouTube_Tutorials">YouTube Tutorials</h4></div>
<ul><li>David Casler (KEØOG)'s Antenna Modeling Videos
<ul><li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=q1Lz-TjdJAY">How High Should a Dipole Be? A Look at Antenna Modeling</a> - Intro to EZnec</li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=7fq95MOrFR4">Decoding Antenna Modeling Charts</a></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=Qpd5gD6MpME">Modeling Common Dipole Variations</a></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=oFE142IMo-s">Modeling the Simple Inverted Vee Antenna</a></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=w595_I-KMP8">Antenna Modeling a Modified Dipole with EZNEC 6+</a></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=XlGZIQFiVjU">20/40 Two Band Dipole Modeled</a></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=kiyAOoz6ICw?t=221">What I discovered by modeling the MFJ-1846 Hex Beam</a></li></ul></li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=jMhHIGB2iTI&amp;list=PLAjpQM3cGOdO83PLddRqsmwQzEGGAAwHd">Callum (M0MCX)'s Antenna Software Modeling videos</a> - YouTube playlist</li>
<li><a rel="nofollow" class="external text" href="https://www.youtube.com/playlist?list=PLaGj1w4DXzYcKffgGZDUS3w1X-7f5PE4c">Karl Schneider (KE0JWK)'s Antenna Modeling with 4NEC2</a> - YouTube Playlist</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Other_NEC_software_lists">Other NEC software lists</h3></div>
<ul><li><a rel="nofollow" class="external text" href="http://nec-archives.pa3kj.com/">The unofficial Numerical Electromagnetic Code (NEC) Archives</a></li>
<li><a rel="nofollow" class="external text" href="https://www.w8io.com/nec-mininec.htm">The W8IO Antenna Site - NEC and Mininec</a></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2024-12-24" href="https://en.wikipedia.org/wiki/?title=Numerical_Electromagnetics_Code&amp;oldid=1265019244">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>